import request from '@/utils/request'

// 发起流程
export function start(appVersionId, data) {
  return request({
    url: '/flowable/procInst/start/' + appVersionId,
    method: 'post',
    data: data
  })
}

// 查询我的发起列表
export function listProcInst(query) {
  return request({
    url: '/flowable/procInst/list',
    method: 'get',
    params: query
  })
}

// 删除实例
export function delProcInst(procInstId) {
  return request({
    url: '/flowable/procInst/' + procInstId,
    method: 'delete'
  })
}
